package cn.liuxiany.alibaba.provider.service.impl;

import cn.liuxiany.alibaba.provider.entity.AccountEntity;
import cn.liuxiany.alibaba.provider.mapper.AccountMapper;
import cn.liuxiany.alibaba.provider.service.IAccountService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author liuxiany
 * @date 2023/10/19
 */
@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class AccountServiceImpl implements IAccountService {

    @Autowired
    private AccountMapper accountMapper;

    @Override
    public void addAccount(AccountEntity account) {
        accountMapper.insert(account);
    }
}
